<%--
  -	$Version: 0.1 $
  -	$Date: 2008-09-09 16:48:22 $
--%>
<%@ page pageEncoding="utf-8"%>
<%@ page import="org.jawa.admin.util.ParamUtils"%>
<%@ page import="org.jawa.core.JawaServer"%>
<%

	boolean doContinue = request.getParameter("continue") != null;
	
	if(doContinue){
		 response.sendRedirect(request.getContextPath()+"/index.jsp");
	     return;
	}

	// 系统已安装
	if (!JawaServer.getInstance().isSetupMode()) {
	    response.sendRedirect("setup-completed.jsp");
	    return;
	}
	
%>	
<!DOCTYPE html>
<html lang="en">
	<head>
		<title>安装结束</title>
		<meta name="currentStep" content="5" />
		<%
		    JawaServer.getInstance().finishSetup();
		%>
	</head>
	<body>
		<div class="row-fluid">
			<div class="page-header">
				<h3>
					安装结束
				</h3>
			</div>
			<div class="well">
				<form name="f" action="setup-finish.jsp" method="post">
				    <div style="text-align: center;">
					   <input type="submit" name="continue" value="登录系统" id="jawa-setup-save" class="btn btn-primary btn-large" />
				    </div>
				</form>
			</div>
		</div>
	</body>
</html>
